﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title>表单 - bootstrap中文后台管理系统模板</title>
    <link rel="icon" href="favicon.ico" type="image/ico">


    <meta name="author" content="yinqi">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/materialdesignicons.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
</head>

<body data-logobg="color_8" data-sidebarbg="color_8">
<div class="layout-web">
    <div class="layout-container">

        <c:import url="nav.jsp"></c:import>

        <!--页面主要内容-->
        <main class="layout-content">

            <div class="container-fluid">

                <div class="col-md-12">
                    <div class="card">
                        <div class="card-header"><h4>个人详情</h4></div>
                        <div class="card-body">
                            <form class="form-horizontal" action="#" method="post" enctype="multipart/form-data"
                                  onsubmit="return false;">
                                <div class="form-group">
                                    <label class="col-xs-12" for="ename">用户名</label>
                                    <div class="col-xs-12">
                                        <input class="form-control" type="text" id="ename" name="ename"
                                               value="${emp.ename}" readonly="readonly">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-xs-12">性别</label>
                                    <div class="col-xs-12">
                                        <c:if test="${emp.sex=='男'}">
                                            <input type="radio" name="sex" value="男" checked="checked">男&nbsp;&nbsp;
                                            <input type="radio" name="sex" value="女">女
                                        </c:if>
                                        <c:if test="${emp.sex=='女'}">
                                            <input type="radio" name="sex" value="男">男&nbsp;&nbsp;
                                            <input type="radio" name="sex" value="女" checked="checked">女
                                        </c:if>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-xs-12" for="tel">电话</label>
                                    <div class="col-xs-12">
                                        <input class="form-control" type="tel" id="tel" name="tel" value="${emp.tel}"
                                               readonly="readonly">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-xs-12" for="email">邮箱</label>
                                    <div class="col-xs-12">
                                        <input class="form-control" type="tel" id="email" name="email" value="${emp.email}"
                                               readonly="readonly">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-xs-12" for="age">年龄</label>
                                    <div class="col-xs-12">
                                        <input class="form-control" type="tel" id="age" name="age" value="${emp.age}"
                                               readonly="readonly">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-xs-12">部门</label>
                                    <div class="col-xs-12">
                                        <c:forEach var="dept" items="${deptlist}">
                                            <c:if test="${emp.did==dept.did}">
                                                <input class="form-control" type="text" value="${dept.dname}" readonly="readonly"/>
                                            </c:if>
                                        </c:forEach>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-xs-12">人员角色</label>
                                    <div class="col-xs-12">
                                        <c:forEach var="role" items="${rolelist}">
                                            <c:if test="${emp.rid==role.rid}">
                                                <input class="form-control" type="text" value="${role.rname}" readonly="readonly"/>
                                            </c:if>
                                        </c:forEach>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-xs-12">
                                        <button class="btn btn-warning" type="button" onclick="history.go(-1)">返回</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>

        </main>
        <!--End 页面主要内容-->
    </div>
</div>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>